﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace deal_h2ck
{
    public partial class master : System.Web.UI.MasterPage
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadLeftMenu();
            LoadSanPhamMoi();
        }
        void LoadLeftMenu()
        {
            string sql = "select * from LOAISANPHAM";
            DataTable dt = SqlDataProvider.LoadSQL(sql);
            dlMenuDoc.DataSource = dt;
            dlMenuDoc.DataBind();
        }
        void LoadSanPhamMoi()
        {
            string sql = "select * from SANPHAM where ngayBatDau= (select MAX(ngayBatDau) from SANPHAM)";
            DataTable dt = SqlDataProvider.LoadSQL(sql);
            dlSanPham_n.DataSource = dt;
            dlSanPham_n.DataBind();
        }
    }
}